package com.bicon.botu.mall.coupon.rpc;


import com.bicon.botu.core.base.common.controller.BaseController;
import com.bicon.botu.mall.coupon.dto.OrderMyCouponsDto;
import com.bicon.botu.mall.coupon.service.IMyCouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 优惠券
 *
 * @author 李双喜
 * @date 2017/9/8 0008 下午 16:05
 */
@CrossOrigin
@RestController
@RequestMapping("/V3.0.0/rpc/myCoupons")
public class MyCouponsRpc extends BaseController {


    @Autowired
    private IMyCouponsService iMyCouponsService;

    /**
     * 根据id查询我的优惠券
     *
     * @param myCoupons 多个优惠券id
     * @return
     */
    @RequestMapping(value = "/selectMyCoupons", method = RequestMethod.POST)
    public List<String>  selectMyCoupons(@RequestParam (value = "myCoupons")List<String> myCoupons) {

        return iMyCouponsService.selectMyCoupons(myCoupons);
    }

}
